/**
 *
 * @author Florent
 */

package edu.com.gestionstock.vue;

import java.awt.Color;
import javax.swing.JPanel;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;

import javax.swing.JButton;

public class PanneauRechercheClient extends JPanel {
	private JLabel jLabelId = null;
	private JLabel jLabelNom = null;
        private JLabel jLabelPrenom = null;
        private JLabel jLabelRue = null; 
        private JLabel jLabelCodePostal = null;
        private JLabel jLabelCommune = null;
        private JLabel jLabelDateNaissance = null;
	private JTextField jTextField_Id = null;
	private JTextField jTextFieldNom= null;
        private JTextField jTextFieldPrenom= null;
        private JTextField jTextFieldRue= null;
        private JTextField jTextFieldCodePostal= null;
        private JTextField jTextFieldCommune= null;
        private JTextField jTextFieldDateNaissance= null;
        
	private JButton jButtonRecherche = null;
	private JButton jButtonAnnuler = null;

        
	public JTextField getJTextField_Id() {
		if (jTextField_Id == null) {
			jTextField_Id = new JTextField();
		}
		return jTextField_Id;
	}

	public JTextField getJTextField_Nom() {
		if (jTextFieldNom == null) {
			jTextFieldNom = new JTextField();
		}
		return jTextFieldNom;
	}
        
        public JTextField getJTextField_Prenom() {
		if (jTextFieldPrenom == null) {
			jTextFieldPrenom = new JTextField();
		}
		return jTextFieldPrenom;
	}
        
        public JTextField getJTextField_Rue() {
		if (jTextFieldRue == null) {
			jTextFieldRue = new JTextField();
		}
		return jTextFieldRue;
        }
        public JTextField getJTextField_CodePostal() {
		if (jTextFieldCodePostal == null) {
			jTextFieldCodePostal = new JTextField();
		}
		return jTextFieldCodePostal;
        }
        public JTextField getJTextField_Commune() {
		if (jTextFieldCommune == null) {
			jTextFieldCommune = new JTextField();
		}
		return jTextFieldCommune;
        }
        public JTextField getJTextField_DateNaissance() {
		if (jTextFieldDateNaissance == null) {
			jTextFieldDateNaissance = new JTextField();
		}
		return jTextFieldDateNaissance;
        }
        
	public PanneauRechercheClient() {
		super();
		initialize();
	}

	private void initialize() {
            
                jLabelId = new JLabel();
		jLabelId.setText("Id");
                jLabelNom = new JLabel();
		jLabelNom.setText("Nom");
                jLabelPrenom = new JLabel();
                jLabelPrenom.setText("Prenom");
                jLabelRue = new JLabel();
                jLabelRue.setText("Rue");
                jLabelCodePostal = new JLabel();
                jLabelCodePostal.setText("Code Postal");
                jLabelCommune = new JLabel();
                jLabelCommune.setText("Commune");
                jLabelDateNaissance = new JLabel();
                jLabelDateNaissance.setText("Date De Naissance");
       
                


		GridLayout gridLayout1 = new GridLayout();
		gridLayout1.setRows(9);
		gridLayout1.setHgap(0);
		gridLayout1.setVgap(0);
		this.setLayout(gridLayout1);
		this.setSize(519, 112);
		this.add(jLabelId, null);
		this.add(getJTextField_Id(), null);
		this.add(jLabelNom, null);
		this.add(getJTextField_Nom(), null);
                this.add(jLabelPrenom, null);
		this.add(getJTextField_Prenom(), null);
                this.add(jLabelRue, null);
		this.add(getJTextField_Rue(), null);
                this.add(jLabelCodePostal, null);
		this.add(getJTextField_CodePostal(), null);
                this.add(jLabelCommune, null);
		this.add(getJTextField_Commune(), null);
                this.add(jLabelDateNaissance, null);
		this.add(getJTextField_DateNaissance(), null);
		this.add(getJButtonRecherche(), null);
		this.add(getJButtonAnnuler(), null);
                this.setBackground(Color.cyan);
	}

        // Initialisation du bouton de recherche 
        
        
	public JButton getJButtonRecherche() {
		if (jButtonRecherche == null) {
			jButtonRecherche = new JButton();
			jButtonRecherche.setText("Recherche");
			/*jButtonRecherche.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.err.println("Bouton recherche"); // TODO Auto-generated Event stub actionPerformed()
				}
			});*/
		}
		return jButtonRecherche;
	}

	// Initialisation du bouton Annuler
       
	public JButton getJButtonAnnuler() {
		if (jButtonAnnuler == null) {
			jButtonAnnuler = new JButton();
			/*jButtonAnnuler.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					jTextField_Id.setText("");
					jTextFieldNom.setText("");

					System.err.println("Bouton Annuler");
				}
			});*/
			jButtonAnnuler.setText("Annuler");
		}
		return jButtonAnnuler;
	}

    public void setjTextField_Id(String jTextField_Id)
    {
        this.jTextField_Id.setText(jTextField_Id);
    }

    public void setjTextFieldNom(String jTextFieldNom)
    {
        this.jTextFieldNom.setText(jTextFieldNom);
    }

    public void setjTextFieldPrenom(String jTextFieldPrenom)
    {
        this.jTextFieldPrenom.setText(jTextFieldPrenom);
    }

    public void setjTextFieldRue(String jTextFieldRue)
    {
        this.jTextFieldRue.setText(jTextFieldRue);
    }

    public void setjTextFieldCodePostal(String jTextFieldCodePostal)
    {
        this.jTextFieldCodePostal.setText(jTextFieldCodePostal);
    }

    public void setjTextFieldCommune(String jTextFieldCommune)
    {
        this.jTextFieldCommune.setText(jTextFieldCommune);
    }

    public void setjTextFieldDateNaissance(String jTextFieldDateNaissance)
    {
        this.jTextFieldDateNaissance.setText(jTextFieldDateNaissance);
    }

        
}